home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000151_amos-request@svcs1.digex.net_Wed Sep 17 00:51:41 1997.msg < prev    next >
Text File  |  1997-10-01  |  4KB  |  82 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id AAA02270
  3.     for <mcox@access.digex.net>; Wed, 17 Sep 1997 00:51:40 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id XAA15331
  6.     for amos-out; Tue, 16 Sep 1997 23:29:32 -0400 (EDT)
  7. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id XAA15328
  9.     for <amos-list@svcs1.digex.net>; Tue, 16 Sep 1997 23:29:31 -0400 (EDT)
  10. Received: from mail.redrose.net (qmailr@mail.redrose.net [204.249.184.22])
  11.     by mail2.access.digex.net (8.8.5/8.8.5) with SMTP id XAA23778
  12.     for <amos-list@access.digex.net>; Tue, 16 Sep 1997 23:29:29 -0400 (EDT)
  13. Received: (qmail 24692 invoked from network); 17 Sep 1997 03:30:15 -0000
  14. Received: from lp8-14.redrose.net (HELO redrose.net) (mushy-pd@205.246.86.110)
  15.   by mail.redrose.net with SMTP; 17 Sep 1997 03:30:15 -0000
  16. From: Mush <mushypd@redrose.net>
  17. Reply-To: mushypd@redrose.net
  18. To: Jens Vang Petersen <top_cat@post8.tele.dk>
  19. CC: amos-list@access.digex.net
  20. Date: Tue, 16 Sep 1997 23:32:15 +0500
  21. Message-ID: <yam7198.787.3595520@mail.redrose.net>
  22. In-Reply-To: <yam7199.626.1747263896@post8.tele.dk>
  23. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  24. Organization: Mushroom PD - AMOS Public Domain Library
  25. Subject: Re: TextEditors..
  26. MIME-Version: 1.0
  27. Content-Type: text/plain
  28. Status: O
  29. X-Status: 
  30.  
  31. The man most directly responsible for this twaddle was Jens Vang Petersen, who
  32. did thus comment on TextEditors.. on the night of 17-Sep-97:
  33. -> Hello out there...
  34.  
  35. -> I'm working on a rewrite of the AlienBreed 3DII Editors, as I went along
  36. -> I found that I need to write a simple (one screen 80*20 chars) text-editor,
  37. so
  38. -> now I'm wondering, how a fast editor like 'GoldED' or 'McEmacs' is working
  39. -> when one's just typing ahead, does it simply reserves an amount of memory
  40. and
  41. -> then when I enter a new letter (Inserting) it simply moves the text after
  42. the
  43. -> new character a place (Using something like AMOS 'copy' command) or is
  44. there
  45. -> some other better way to do something like this ??
  46.  
  47. Usually, the programs reserve a chunk of memory upon loading (hence why some
  48. need a lot of memory) which is increased automatically when a certain size is
  49. reached in memory, of your document size.
  50.  
  51. Usually, the buffer is all in one part of the memory to make loading/saving a
  52. file a heck of a lot easier.
  53.  
  54. Here is an example:
  55.  
  56. This is how it could look like.00000000000000000000000000000000000000
  57. 000000000000000000000000000000000000000000000000000000000000000000000
  58. 000000000000000000000000000000000000000000000000000000000000000000000
  59. 000000000000000000000000000000000000000000000000000000000000000000000
  60. 000000000000000000000000000000000000000000000000000000000000000000000
  61. 000000000000000000000000000000000000000000000000000000000000000000000
  62. 000000000000000000000000000000000000000000000000000000000000000000000
  63. 000000000000000000000000000000000000000000000000000000000000000000000
  64.  
  65. would be how it looks in the buffer. a small flag within the program knows the
  66. exact place to save to, and a BSAVE command is issued, so you dont get the
  67. full
  68. length of the buffer, aven if the file is only 1 character.
  69.  
  70. If the map is only 80x20, then make a line of 80 characters, copy+paste it 20
  71. times, then make the map using an overwrite mode instead of insert.
  72.  
  73. Andrew "Mushroom" Kellett
  74. --
  75.  Email: Andy Kellett <mushypd@redrose.net>  Team *AMOS* + IAPA Team *AMIGA*
  76.   alt.religion.amos - AMOS now on usenet! AMOS Mailinglist also mirrored
  77.  
  78.      World's Largest AMOS Homepages - http://www.mushy-pd.demon.co.uk
  79.  
  80.          Massive FTP site with AMOS/C64 and Mods/Samples + more at
  81.                             mushy-pd.dyn.ml.org
  82.